package com.csist.service.po.studentRegistryModule.impl;

import com.csist.mapper.po.studentRegistryModule.LevelRegistrationMapper;
import com.csist.pojo.po.studentRegistryModule.LevelRegistration;
import com.csist.service.po.studentRegistryModule.LevelRegistrationService;
import com.csist.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.util.Collections;
import java.util.List;

/**
 * @ClassName LevelRegistrationServiceImpl
 * @Description 【自行描述】
 * @Author cn
 * @Date 2024/7/1 下午3:01
 * @Version 1.0
 */
public class LevelRegistrationServiceImpl implements LevelRegistrationService {
    private SqlSession sqlSession;
    private LevelRegistrationMapper levelRegistrationMapper;
    public LevelRegistrationServiceImpl() {
        sqlSession = SqlSessionUtil.openSession();
        levelRegistrationMapper = sqlSession.getMapper(LevelRegistrationMapper.class);
    }
    @Override
    public List<LevelRegistration> findAll() {
        return Collections.emptyList();
    }

    @Override
    public List<LevelRegistration> searchLRByColumn(LevelRegistration lr) {
        List<LevelRegistration> list = levelRegistrationMapper.searchLRByColumn(lr);
        if (list != null && list.size() > 0) {
            return list;
        }
        return null;
    }

    @Override
    public LevelRegistration getLRById(int id) {
        return null;
    }

    @Override
    public int addLR(LevelRegistration lr) {
        return 0;
    }

    @Override
    public int updateLR(LevelRegistration lr) {
        return 0;
    }
}
